<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        .rotate{
            width:100px;
            height:100px;
            background-color: red;
            margin: 20px;
            animation: rotateAnimation 4s linear infinite;}
            @keyframes rotateAnimation {from{transform: rotate(0deg);}to{transform: rotate(360deg);}}
    </style>
</head>
<body>
    <div class="rotate"></div>
</body>
</html>